#ifndef QCOMMONSTRUCT_H
#define QCOMMONSTRUCT_H

#include <QString>
#include <QVariant>

struct tagComboItem
{
    QString     m_text;
    QString     m_icon;
    QVariant    m_value;
};

typedef QList<tagComboItem> ComboItems;

Q_DECLARE_METATYPE(ComboItems)

class tagMemeryValueInfo
{
public:
    QString     m_propertyName;
    QString     m_valueGroup;
    QString     m_valueName;
    QString     m_script;
    bool operator ==(const tagMemeryValueInfo &info)
    {
        return (info.m_propertyName==m_propertyName
                && info.m_valueName==m_valueName
                && info.m_script==m_script
                && info.m_valueGroup==m_valueGroup);
    }
};
typedef QList<tagMemeryValueInfo> MemeryValueItems;
Q_DECLARE_METATYPE(MemeryValueItems)

struct tagStyleItem
{
    QString     m_text;
    QString     m_string;
};
typedef QList<tagStyleItem> StyleItems;
Q_DECLARE_METATYPE(StyleItems)

struct tagPagePositionInfo
{
    QMap<QString,QVariant>  m_data;
};
Q_DECLARE_METATYPE(tagPagePositionInfo)

#endif // QCOMMONSTRUCT_H
